/**
 * Bakalarska prace - Inteligentni budik
 * @package sleepCatcher
 * @file FormSettingsInteligentSleep.h
 * @author Jan Pesava - xpesav00
 * @email xpesav00@stud.fit.vutbr.cz
 * @date 24. 12. 2011
 */

#ifndef FormSettingsInteligentSleep_H_
#define FormSettingsInteligentSleep_H_

#include <FBase.h>
#include <FUi.h>

using namespace Osp::Base;
using namespace Osp::Ui::Controls;


class FormSettingsInteligentSleep :
	public Osp::Ui::Controls::Form,
	public Osp::Ui::IActionEventListener
{

// Construction
public:
	FormSettingsInteligentSleep();
	virtual ~FormSettingsInteligentSleep();

// Constants
	static const int IDA_BUTTON_BACK 	= 200;
	static const int IDA_VALUE_0 		= 201;
	static const int IDA_VALUE_5 		= 202;
	static const int IDA_VALUE_10 		= 203;
	static const int IDA_VALUE_15 		= 204;
	static const int IDA_VALUE_20 		= 205;
	static const int IDA_VALUE_25 		= 206;
	static const int IDA_VALUE_30 		= 207;
	static const int IDA_VALUE_40 		= 208;
	static const int IDA_VALUE_50 		= 209;
	static const int IDA_VALUE_60 		= 210;
// Attributes
	ScrollPanel* pScrollPanelMaxAwakeTime;
	CheckButton* pValue0;
	CheckButton* pValue5;
	CheckButton* pValue10;
	CheckButton* pValue15;
	CheckButton* pValue20;
	CheckButton* pValue25;
	CheckButton* pValue30;
	CheckButton* pValue40;
	CheckButton* pValue50;
	CheckButton* pValue60;
// Methods
public:
	bool Initialize(void);
	virtual result OnInitializing(void);
	virtual result OnTerminating(void);
	virtual void OnActionPerformed(const Osp::Ui::Control& source, int actionId);
	int GetFormId();
	void SetChooseValue();
	void SetValue(int valueId);
	void Update();
	void Redraw();
};

#endif /* FORMSETTIONGMAXAWAKETIME_H_ */
